<template>
    <div>
        <h3>登录页面</h3>
        <form @submit="handleSubmit">
            <input type="text" id="username"  value="admin" />
            <input type="password" id="password"  value="123456" />
            <button type="submit">登录</button>
        </form>
    </div>
  </template>

<script>
export default {
  data() {
    return {
      
    };
  },
  methods: {
    handleSubmit() {
      localStorage.setItem("isLoggedIn", true);
      // 跳转回StudentSystem页面
      this.$router.push("/studentSystem");
    },
  },
};
</script>